home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / misc / Randyprog.readme < prev    next >
Text File  |  1999-03-02  |  3KB  |  57 lines

  1. Short:    Run another program with Truely random parameters
  2. Author:   Mark Tierno
  3. Uploader: drstrange@usa.net
  4. Type:     util/misc
  5.  
  6.     Ever run one of those "Random" WB backdrop programs, with about a thousand pics on your harddrive for it
  7. to choose from only to discover that the "random" routine used in the program only seems to choose the
  8. same 20 out of all those 1000 pictures?
  9.     I have.
  10.     Being tired of random routines in programs that aren't really random, and having a good one up my
  11. sleeve, I broke out the old compiler and did something about it.
  12.     Enter Randyprog.  It will run the specified program with a random parameter as picked from the
  13. specified list.
  14.  
  15.  
  16. USAGE
  17.  
  18.     from shell:  Randyprog <ProgramName> <Random Parameter List>
  19.       Where:
  20.           ProgramName = the complete path and name of the program to run;  no need to put in the "RUN
  21. <>NIL:", I do all that for you.  Also include here any NON-random parameters you want the program to use.
  22. If there will be any spaces in this part then enclose the whole thing in double quotes.
  23.           Random Parameter List:  This is the complete path and name to a file that contains a list of
  24. random parameters, one per line.  For Instance:  If you're using Randyprog to run a WB backdrop program, then
  25. each line in this file would contais the complete path to a differnt picture someplace on your hard drive.
  26. Don't use any wild cards here or they will be passed to the original program and allow it to use it's own
  27. internal random routines for that part, defeating the whole purpose of using this program.
  28.  
  29.     That's it; nothing too difficult.
  30.  
  31. EXAMPLE
  32.  
  33. I use this for a random WB backdrop program called RndBG.  In S: I keep a file called "wbbackpics" which
  34. is a list of every picture on my harddrive, each line a complete path (just use "list" with an LFORMAT
  35. parameter to generate it in a jiffy).  My command line (slaved to a hot-key for immediate use) is
  36.   Randyprog "C:RndBG WBPIC" S:wbbackpics
  37. Of course you can use this for any program that you want to give a random parameter to (bootpics,
  38. backdrops, whatever).
  39.  
  40. FUTURE
  41.  
  42.     Like there's more I can do with this thing?
  43.  
  44. HISTORY
  45.  
  46.   v1.0  Initial release
  47.  
  48.  
  49. ============================= Archive contents =============================
  50.  
  51. Original  Packed Ratio    Date     Time    Name
  52. -------- ------- ----- --------- --------  -------------
  53.     2183    1064 51.2% 29-Jan-99 23:58:34  Randyprog.readme
  54.    19172   10683 44.2% 30-Jan-99 00:09:20  Randyprog
  55. -------- ------- ----- --------- --------
  56.    21355   11747 44.9% 30-Jan-99 23:51:16   2 files
  57.